<%-- 
    Document   : solicitar
    Created on : 17/07/2013, 09:05:11
    Author     : Eduardo
--%>

<%@page import="java.util.ArrayList"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@page import="Model.*"%>
<%@page import="Controller.*"%>
<%@page import="java.sql.*" %> 
<%@page import="java.io.*" %>
<%@include file="includes/header.jsp" %>

<%
    String id = session.getAttribute("curso_id").toString();
    Query q = new Query();
    ResultSet rs = q.getGrade(id);
%>

<div class="row-fluid">
    <div class="span12">
        <h1>Solicitar disciplina</h1>
        <hr>
    </div>
    <form id="formSolicita">
    <input name="action" type="hidden" value="salvaSolicitacao">
    <input name="curso" type="hidden" value="<%=id%>">
    <div class="row-fluid">
        <div class="span6">
            <div class="control-group">
                <label class="control-label" for="sem">Selecione o semestre</label>
                <div class="controls">
                    <select id="sem" name="sem" class="input-xlarge" data-curso="314">
                        <option>Selecione</option>
                        <option value="1">Primeiro semestre</option>
                        <option value="2">Segundo semestre</option>
                        <option value="3">Terceiro semestre</option>
                        <option value="4">Quarto semestre</option>
                        <option value="5">Quinto semestre</option>
                        <option value="6">Sexto semestre</option>
                        <option value="7">Setimo semestre</option>
                        <option value="8">Oitavo semestre</option>
                        <option value="0">Qualquer semestre</option>
                    </select>
                </div>
            </div>
        </div>
        <div class="span6" id="grade" style="display:none">
            <div class="control-group">
                <label class="control-label" for="disc">Selecione a discplina</label>
                <div class="controls">
                    <select id="disc" name="disc" class="input-xlarge">

                    </select>
                </div>
            </div>
        </div>
    </div>
    <div class="row-fluid" id="addCampos" style="display:none">
        <div class="span6">
            <div class="control-group">
                <label class="control-label" for="sem">Dias na semana</label>
                <div class="controls">
                    <select id="dias" name="dias" class="input-xlarge">
                        <option>Selecione</option>
                        <option value="1">Um dia</option>
                        <option value="2">Dois dias</option>
                        <option value="3">Tres dias</option>
                    </select>
                </div>
            </div>
        </div>
        <div class="span6" id="diaWrapper" style="display:none">
            <div id="diaSpan"></div>
            <div class="control-group">
                <label class="control-label" for="diabox"><h6>Selecione o(s) dia(s) da semana</h6></label>
                <div class="controls">
                    <input type="checkbox" name="diabox" class="diabox" value="1"> Segunda-feira<br/>
                    <input type="checkbox" name="diabox" class="diabox" value="2"> Terca-feira<br/>
                    <input type="checkbox" name="diabox" class="diabox" value="3"> Quarta-feira<br>
                    <input type="checkbox" name="diabox" class="diabox" value="4"> Quinta-feira<br>
                    <input type="checkbox" name="diabox" class="diabox" value="5"> Sexta-feira<br>
                </div>
            </div>
        </div>
    </div>
    <div class="row-fluid" id="selectHora" style="display:none">
        
    </div>
    <hr/>
    <div class="row-fluid" id="controlForm" style="margin-top:40px;display:none">
        <a class="btn btn-success salvarS">Salvar</a>
        <a class="btn btn-danger resetar">Resetar</a>        
    </div>
    </form>
</div>
<script src="js/solicitar.js"></script> 
<%@include file="includes/footer.jsp" %>